package com.tboss.template.home.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
//import com.tboss.template.func.collection.servlet.security.type.WidgetType;

@Controller
@RequestMapping(value = "/template/auth")
public class AuthController {
	
	//@Autowired AuthService authServicel;

	/* Login Test, Logout Test, noAuth */
	@RequestMapping(value = {"login", "logout", "noAuth", "authConfirm"}, 
			method = {RequestMethod.POST, RequestMethod.GET})
	public String login(Model model, HttpServletRequest req) {
		String rtnUrl = req.getServletPath().substring(1);

		return rtnUrl;
	}

	/* U+ OSS Widget Login Test */
	/*@RequestMapping(value = {"uplusOssWidgetLogin"}, method = {RequestMethod.POST, RequestMethod.GET})
	public ModelMap uplusOssWidgetLogin(ModelMap modelMap, @RequestParam("encName") String encName, 
			@RequestParam("decName") String decName,  
			HttpServletRequest req, HttpServletResponse res) throws UnsupportedEncodingException {
		
		this.authServicel.uplusOssWidgetLogin(modelMap, encName, decName, req, res);
	
		return modelMap;
	}*/
	
}
